package com.netjava.service.impl;

import com.netjava.dao.IMessageDAO;
import com.netjava.pojo.Message;
import com.netjava.service.IMessageService;

public class MessageService implements IMessageService {
	private IMessageDAO messageDao;
	public void add(Message message) {
		messageDao.save(message);

	}

	public void delete(Message message) {
		messageDao.delete(message);

	}

	public IMessageDAO getMessageDao() {
		return messageDao;
	}

	public void setMessageDao(IMessageDAO messageDao) {
		this.messageDao = messageDao;
	}

}
